package com.zst.sw.server.mockspringapp;

import com.alibaba.fastjson2.JSON;
import com.zst.sw.server.module.TraceDataHandler;
import com.zst.sw.server.module.segment.Segment;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Slf4j
public class LogTraceDataHandler implements TraceDataHandler {
    @Override
    public void handle(List<Segment> data) {
        log.info(JSON.toJSONString(data));
    }
}
